home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / O Boy / Source / FinderAETE_da.cp < prev    next >
Text File  |  1996-06-21  |  1KB  |  61 lines

  1. #pragma once on
  2. /*
  3.     FinderAETE_da.h
  4.     © Bob Boylan 1996
  5.  
  6.     Revision History
  7.     MacHack 1996        initial creation
  8. */
  9. #include "FinderAETE_da.h"
  10. #include "ComputerAETE_da.h"
  11.  
  12. #include <ASRegistry.h>
  13.  
  14.  
  15. //    -----------------------------------------------------------------
  16. //    ctor
  17. //
  18. FinderAETE_da::FinderAETE_da()
  19. {}
  20. FinderAETE_da::FinderAETE_da( AppAEObj_pd *inApp )
  21.     : AETE_da( inApp )
  22. {}
  23.  
  24.  
  25. //    -----------------------------------------------------------------
  26. //    dtor
  27. //
  28. FinderAETE_da::~FinderAETE_da()
  29. {}
  30.     
  31.  
  32. //    -----------------------------------------------------------------
  33. //    GetElements
  34. //
  35. vector<Elem_da>
  36. FinderAETE_da::GetElements( const DescType inClassID )
  37. {
  38. vector<Elem_da>    theRetVal;
  39.  
  40.     if( inClassID == cFinderProcess ) // we may be asking the app
  41.     {
  42.         AETE_da::ClassIterator_ut    theFirstClass( &_Suites );
  43.         AETE_da::ClassIterator_ut    theLastClass ( &_Suites,true );
  44.         
  45.         while( theFirstClass != theLastClass )
  46.         {
  47.                 Elem_da    theElem;
  48.                 theElem._ID = (*theFirstClass)._ID;
  49.                 theRetVal.push_back( theElem );
  50.             ++theFirstClass;
  51.         }
  52.     }
  53.     else
  54.     {
  55.         theRetVal = AETE_da::GetElements( inClassID );
  56.     }
  57.     return theRetVal;
  58. }
  59.  
  60.  
  61.